<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="/public/css/util.css">
    <link rel="stylesheet" href="/public/css/index.css">
    <script src="http://libs.baidu.com/jquery/1.8.3/jquery.min.js"></script>
    <title>博客</title>
</head>
<body>
<header>
    <div class="center">
        <a class="head_logo" href="/">
            <img src="/public/imgs/logo.png" />
        </a>
        <nav class="head_nav">
            <a {% if !categoryType %} class="head_navCur" {% endif %} href="/">首页</a>
            {% for category in categories %}
            <a href="/?categoryType={{category._id.toString()}}" {% if categoryType == category._id.toString() %} class="head_navCur" {% endif %}>{{category.name}}</a>
            {% endfor %}
        </nav>
    </div>
</header>
{% block main %}{% endblock %}
</body>
</html>